home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Source Code / Visual Basic Source Code.iso / vbsource / dialog / dialog.txt < prev    next >
Encoding:
Text File  |  1994-10-18  |  926 b   |  35 lines

  1. Problem:
  2. MSGBOX is modal and keeps my timer events from
  3. processing, but I still want the user to close
  4. this form before continuing.
  5.  
  6. Solution:
  7. Add DIALOG.BAS and DIALOG.FRM to your application
  8.  
  9. (Local.bas contains all of the required declarations
  10. for the API calls, and a sample call to the sub in 
  11. sub MAIN)
  12.  
  13. change all of your MSGBOX statements to AKMSGBOX
  14. and all of your MSGBOX() function calls to AKMSGBOXF
  15. the msgbox will appear just like the old one, but
  16. non-modal and the cursor is clipped to the dialog
  17. box region. This lets timer events and backround 
  18. processing continue, while preventing the user from
  19. clicking elsewhere. 
  20.  
  21. Limitations,
  22. 1. Fixed width (will grow in height to accomidate
  23.    large messages).
  24. 2. None of the modal numbers works (obviously)
  25.  
  26. Let me know if you found this of any use.
  27.  
  28. Aaron Kornbluth
  29. 73044,1640
  30. PCSI 
  31. 383 Nordhoff Place
  32. Suite 100
  33. Englewood NJ 07631
  34.  
  35.